package com.kyleromano.disgaea;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * Root application menu
 * Launches other menus from here to get to specific functionality such as character editing or item tracking
 * @author kromano
 *
 */
public class DisgaeaTrackerActivity extends Activity {
	public ArrayList<Character> characterArray;	//temporary!

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.main);
		
		//Button to open the character list view
		Button charList = (Button)this.findViewById(R.id.openCharacterList);
		charList.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(), CharacterListViewActivity.class);
				startActivityForResult(myIntent,0);
			}
		});

		//Button to open the tier unlock display
		Button classUnlock = (Button)this.findViewById(R.id.openClassList);
		classUnlock.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(), ClassUnlockViewActivity.class);
				startActivityForResult(myIntent,0);
			}
		});
		
		//What do those stupid Innocent names mean? Click here to find out!
		Button innocents = (Button)this.findViewById(R.id.openInnocentList);
		innocents.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent myIntent = new Intent(view.getContext(), InnocentEffectListActivity.class);
				startActivityForResult(myIntent,0);
			}
		});
	}
}